package com.baoyouqun.domain.CreateCmd;

import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serializable;

@Data
public class UserAddressCreateCmd implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户ID（关联用户表）")
    private String userId;

    @ApiModelProperty(value = "收件人姓名")
    @NotBlank(message = "用户ID不能为空")
    private String receiverName;

    @ApiModelProperty(value = "收件人电话（支持手机号/固定电话）")
    @NotBlank(message = "收件人电话不能为空")
    private String receiverPhone;

    @ApiModelProperty(value = "省份")
    @NotBlank(message = "省份不能为空")
    private String province;

    @ApiModelProperty(value = "城市")
    @NotBlank(message = " 城市不能为空")
    private String city;

    @ApiModelProperty(value = "区/县")
    @NotBlank(message = " 区/县不能为空")

    private String district;

    @ApiModelProperty(value = "详细地址（街道、门牌号等）")
    @NotBlank(message = " 详细地址不能为空")

    private String detailAddress;

    @ApiModelProperty(value = "邮政编码")
    private String postalCode;

    @ApiModelProperty(value = "是否默认地址（1-是，0-否）")
    private Boolean isDefault = false;


}